<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";
	require_once "../../_func/__MysqlFunc.php";
	require_once "../../_func/_BoardFunc.php";
?>



<? /*DB에서 필요한 리스트 가져오기 ******************************************/ ?>
	<!-- board include -->
	<? include("../_layout/boardList.inc"); ?>
<? /*DB에서 필요한 리스트 가져오기 ******************************************/ ?>




<? /*request page에 넘길 response make : HTML response ***********************/ ?>
            	<colgroup>
				<col width="4%" />
                <col width="*" />
                <col width="50" />
                <col width="70" />
                <col width="100" />
                <col width="50" />
                </colgroup>
            	<tr>
                    <th>번호</th>
                    <th>제목</th>
                    <th>첨부</th>
                    <th>작성자</th>
                    <th>작성일</th>
                    <th>조회수</th>
				</tr>
<?
	if ($list->getLength() == 0)
	{
?>
                <tr>
                	<td colspan=6>등록된 글이 없습니다.</td>
                </tr>
<?
	}
	else
	{
		while ($list->hasNext())
		{
			$row 				= & $list->next();
			$no					= $row->getNumber('no');
			$tid					= $row->getNumber('tid');
			$subject			= $row->getString('subject');
			$writer_name		= $row->getString('writer_name');
			$reg_date			= $row->getString('reg_date');
			$hit_count			= $row->getString('hit_count');
			$upload_file0		= $row->getString('upload_file0');
?>
                <tr>
                	<td><?echo $tid?></td>
                    <td class="title" onClick="v('<?echo $b?>', '<?echo $no?>');"><?echo $subject?></td>
                    <td><?echo $upload_file0 == "" ? "" : "<a href='#'><span class='fileUp'></span></a>" ?></td>
                    <td><?echo $writer_name?></td>
                    <td><?echo substr($reg_date, 0,10) ?></td>
                    <td><?echo $hit_count?></td>
                </tr>
<?
			}
		}
?>
<? /*request page에 넘길 response make : HTML response ***********************/ ?>